package com.ideaaedi.springcloud.jd.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ideaaedi.springcloud.jd.commonds.entity.user.po.SysRoleMenuRePO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysRoleBindMenuReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysRoleQueryMenuReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.resp.SysQueryMenuRespVO;

import java.util.List;

/**
 * <p>
 * 系统-角色菜单中间表 服务类
 * </p>
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.1.A
 */
public interface SysRoleMenuReService extends IService<SysRoleMenuRePO> {
    
    /**
     * 给角色绑定菜单
     *
     * @param req 请求模型
     *
     * @return 操作是否成功
     */
    List<SysQueryMenuRespVO> bindMenu(SysRoleBindMenuReqVO req);
    
    /**
     * 查询角色拥有的菜单
     *
     * @param req 请求参数
     *
     * @return 菜单信息集合
     */
    List<SysQueryMenuRespVO> queryMenu(SysRoleQueryMenuReqVO req);
}
